<?php $cs = Yii::app()->getClientScript();
$cs->registerCssFile(Yii::app()->request->baseUrl . "/css/view/addition.css");
 ?>
<?php
$this->breadcrumbs = array(
    'News' => array('index'),
    $model->id_news,
);

$this->menu = array(
    array('label' => 'List NEWS', 'url' => array('index')),
    array('label' => 'Create NEWS', 'url' => array('create')),
    array('label' => 'Update NEWS', 'url' => array('update', 'id' => $model->id_news)),
    array('label' => 'Delete NEWS', 'url' => '#', 'linkOptions' => array('submit' => array('delete', 'id' => $model->id_news), 'confirm' => 'Are you sure you want to delete this item?')),
    array('label' => 'Manage NEWS', 'url' => array('admin')),
);
?>

<h1>View NEWS #<?php echo $model->id_news; ?></h1>

<?php
$folderUpload = hash('sha512', "news" . base64_decode(Yii::app()->user->school));
$this->widget('zii.widgets.CDetailView', array(
    'data' => $model,
    'attributes' => array(
        'id_news',
        'new',
        array(
            'label' => 'Image',
            'type' => 'raw',
            'value' => html_entity_decode(CHtml::image(Yii::app()->request->baseUrl. '/file/' . $folderUpload . '/' .$model->image_new,'alt',array('width'=>100,'height'=>100))),
            'cssClass'=>'imagePreview'
        ),
        'summary',
        'owner',
        'created_at',
        'id_admin',
    ),
));
?>
